package com.zynn.service.module.es.dao;

import com.zynn.service.module.es.bo.GroupBO;
import com.zynn.service.module.es.entity.Users;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 刘天元
 * @since 2018-07-11
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {

    List<GroupBO> queryJoinedGroup(Long userId);

    List<GroupBO> batchQueryByGroupId(@Param("groupIdList") List<Long> groupIdList,@Param("userId") Long userId);

}
